package com.example.demo.utils;


import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

// 这是一个MongoDB实体类
@Setter
@Getter
public class PullGroupInfoDocument {

    @Id
    private String id;

    private String groupId;

    private String groupName;

    private String groupType;

    private String groupLeader;

    private List<MembersInfoDocument> groupMembers;


    //    定义一个非静态内部类
    @Setter
    @Getter
    public static class MembersInfoDocument {

        private String key;

        private String label;

        private String avatar;

        @Override
        public String toString() {
            return "MembersInfoDocument{" +
                    "key='" + key + '\'' +
                    ", label='" + label + '\'' +
                    ", avatar='" + avatar + '\'' +
                    '}';
        }

    }


}
